﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Util
{
    public class SysUtils
    {
        public static void KillWord()
        {
            Kill("WINWORD");
        }

        public static void Kill(string processName)
        {
            Process[] processes = Process.GetProcessesByName(processName);

            foreach (Process process in processes)
            {
                process.Kill();
            }
        }
    }
}
